
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserBrokerageFrozenRequest struct {

	Uid string `json:"uid" form:"uid"`

	Price string `json:"price" form:"price"`

	UillId string `json:"uill_id" form:"uill_id"`

	FrozenTime string `json:"frozen_time" form:"frozen_time"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

	OrderId string `json:"order_id" form:"order_id"`

}

func (r *UserBrokerageFrozenRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserBrokerageFrozenRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"price": "required",

		"uill_id": "required",

		"frozen_time": "required",

		"status": "required",

		"add_time": "required",

		"order_id": "required",

	}
}

func (r *UserBrokerageFrozenRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserBrokerageFrozenRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserBrokerageFrozenRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
